package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @Description  同步时间表
 */
@Data
@TableName("cp_work_update_time")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "同步时间")
public class WorkUpdateTimeEntity extends BaseEntity<WorkUpdateTimeEntity> {

	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "id")
	private Integer id;

	@ApiModelProperty(value = "企业id")
	private Integer corpId;

	@ApiModelProperty(value = "类型（1.通讯录，2.客户，3.标签，4.部门 5.会放内容存档）")
	private Integer type;

	@ApiModelProperty(value = "最后一次同步时间")
	private Date lastUpdateTime;

	@ApiModelProperty(value = "错误信息")
	private String errorMsg;
}
